import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';

import RouterApp from '@/router/router';
import store from '@/store/store';

import './css/index.less';

//@reduxjs/toolkit 需要
const promiseA = new Promise(function (resolve) {
  resolve('test');
});
if (!Object.entries) {
  promiseA;
  console.log('not suppord entries');
}

function RenderApp() {
  return (
    <Provider store={store}>
      <RouterApp />
    </Provider>
  );
}

ReactDOM.render(<RenderApp />, document.getElementById('app'));
